package org.simplespringframework.mvc.annotation;

import org.simplespringframework.mvc.type.RequestMethod;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @BelongsProject: simpleframework
 * @BelongsPackage: org.simplespringframework.mvc.annotation
 * @Author: xshang
 * @CreateTime: 2023-06-29  11:50
 * @Description: 标识Controller的方法与请求路径和请求方法的映射关系
 * @Version: 1.0
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {

    String value() default "";  // 保存请求路径

    RequestMethod method() default RequestMethod.GET; // 请求方法


}
